import cv2
import numpy as np
image = cv2.imread('figure.png')
cv2.imshow('BGR',image)
b,g,r = cv2.split(image)
bgr_merge = cv2.merge([b,g,r])
cv2.imshow('BGR_MERGE',bgr_merge)
rgb_merge = cv2.merge([r,g,b])
cv2.imshow('RGB_MERGE',rgb_merge)
cv2.waitKey()
cv2.destroyAllWindows()